#ifndef FILESTREAM_H
#define FILESTREAM_H

#include "stream/streambase.h"
#include <QString>
#include <QFile>

class FileStream : public StreamBase
{
protected:
    ~FileStream();
public:
    FileStream(const QString &filePath);

    virtual qint64 validFrom(qint64 offset=0);
    virtual qint64 read(void *buffer,qint64 offset,qint64 bufferLen);

private:
    QString _filePath;
    QFile _file;

    int open();
};

#endif // FILESTREAM_H
